home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
476-500
/
disk_499
/
diglib
/
diglib.lzh
/
source
/
TRACEC.for
< prev
next >
Wrap
Text File
|
1991-04-13
|
570b
|
23 lines
SUBROUTINE TRACEC(X,Y,NPTS)
IMPLICIT NONE
INTEGER NPTS,I
REAL*4 X(NPTS), Y(NPTS), VX, VY
C
C THIS SUBROUTINE TRACES THE LINE FROM X(1),Y(1) TO
C X(NPTS),Y(NPTS) WITH APPROPIATE CLIPPING.
C
INCLUDE DIGLIB$KOM:PLTSIZ.PRM
C
REAL*4 AREA(4)
C
CALL GSSCLP(XVSTRT,XVSTRT+XVLEN,YVSTRT,YVSTRT+YVLEN,AREA)
CALL SCALE(X(1),Y(1),VX,VY)
CALL GSMOVE(VX,VY)
10 DO 100 I=2,NPTS
CALL SCALE(X(I),Y(I),VX,VY)
CALL GSDRAW(VX,VY)
100 CONTINUE
CALL GSRCLP(AREA)
RETURN
END